import { PositionCss } from "@/utils/styledfc";
import { CSSRuleObject, styled } from "styledfc";
import backIcon from "@/assets/images/back.png";
import { useNavigate } from "react-router-dom";
export default function Back() {
    const navgate = useNavigate();
    const pathBack = () => {
        navgate(-1);
    };
    return <img src={backIcon} onClick={pathBack} className={backStyle.className} />;
}
const backStyle = styled({
    height: "30rem",
    width: "30rem",
    ...(PositionCss("absolute", { top: "10rem", left: "10rem" }) as CSSRuleObject),
});
